const path = require('path');
function resolve(dir) {
    // __dirname项目根目录的绝对路径
    return path.join(__dirname, dir);
}
const projectContext = 'kai-vue'
// 输出路径
const outputDir = `dist${projectContext}`
module.exports = {
    outputDir,
    chainWebpack (config) {
        config.module
            .rule('file-loader')
            .test(/\.(pdf|docx|doc|xlsx|mp4)$/)
            .use('file-loader?name=[path][name].[ext]')
            .loader('file-loader')
            .end()
    }
}
